package com.ybox.app.mapper;

import com.ybox.app.domain.AppUserArticle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AppUserArticleMapper {
    /**
     * insert
     *
     * @param row row
     * @return int int
     */
    int insert(AppUserArticle row);

    /**
     * insertSelective
     *
     * @param row row
     * @return int int
     */
    int insertSelective(AppUserArticle row);

    int deleteUserArticleByUserId(Long userId);

    int countUserArticleByUserId(Long userId);

    int deleteUserArticleInfo(AppUserArticle AppUserArticle);

    int deleteUserArticleInfos(Long userId, String[] articleIds);

    List<AppUserArticle> selectArticleIdByUserId(Long userId);
}